#pragma once


#include <Windows.h>

#ifdef QGLOBAL_H
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QVector>
#include <QtCore/quuid.h>

typedef	 QMap<int,QString>	  IndexMapString;
typedef  QMap<QString,LONG>	  StringMapLong;
typedef  QMap<QString,HANDLE> StringMapHandle;
typedef  QMap<int,HANDLE> IndexMapHandle;
typedef  QMap<QUuid,HANDLE> UuidMapHandle;
typedef	 QMap<QUuid,QString> UuidMapString;
typedef  QList<QUuid> ListUuid;
typedef  QList<int>	  ListInt;
typedef  QList<HANDLE>    ListHandle;
typedef  QVector<HANDLE>  VectorHanle;
typedef  QMap<QUuid,IndexMapString>  UuidGroup;
#endif

//namespace SystemNamespace{
//	enum  eItemStatus{ItemSuccess,ItemError,ItemWarning};
//}


#define   FREEMEMORY(ptr)  \
{\
	if(ptr) \
	delete ptr; \
	ptr = NULL;\
	\
}
